import httpx

url = 'http://127.0.0.1:8000/updateuser/'
data = {
    'uid': 4,
    'username': '642高磊'
}

r = httpx.put(url=url)
print(r.text)